<?php  
namespace Admin\Controller;
use Think\Controller;
class LoginController extends Controller{
	function index(){
		$this->display();
	}
	function check(){
		$username=$_POST['username'];
		$password=$_POST['password'];

		$admin=new \Think\Model('Admin');
		$rs=$admin->where("username=%s and password=%s",array($username,$password))
				  ->find();
				  
	}
}	
